/*********************************************************************************
 *Copyright:  (C) 2018 LingYun IoT System Studio
 *Author:  Guo Wenxue <guowenxue@gmail.com>
 *Copied by whut_zty <zhuty_cn@163.com>
 *Temperature and humidity sensor driver file.
 *Created in 20210113
 ********************************************************************************/
#include <linux/types.h>
#include <sys/stat.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <stdint.h>
#include <time.h>
#include <errno.h>
#include <string.h>

static inline void msleep(unsigned long ms);
static inline void dump_buf(const char *prompt, uint8_t *buf, int size);

int sht2x_init(void);
int sht2x_softreset(int fd);
int sht2x_get_serialnumber(int fd, uint8_t *serialnumber, int size);
int sht2x_get_temp_humidity(int fd, float *temp, float *rh);
void OutputData(char *buf, int size);

